package com.wendy.common.core.json.jackson;

import com.fasterxml.jackson.databind.JsonSerializer;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: ALEX WANG
 * @Date: 2020/3/17 18:29
 */
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface EnumSerializer {
    public Class<? extends JsonSerializer> using() default MyEnumSerializer.class;
    public String key()  ;

}
